#ifndef SYSTEM_H
#define SYSTEM_H
#include "Helper.h"
#include "Table.h"
#include <string>
#include "Command.h"
#define SELECT_COMMAND 1
#define CREATE_COMMAND 2
#define DROP_COMMAND 3
using namespace std;

class Command;
class SQLSystem
{
public:
	SQLSystem();
	~SQLSystem();
	vector<Table *> getAllTables();
	Table* getTableByName(string name);
	int getTableIndex(string table);
	void removeTable(string name);
	void addTable(Table* table);
	void input();
	void process();
	void run();

private:
	Command* command;
	string statement;
	vector<Table *> tables;
	Helper* helper;
};

#endif